import random
import pygame

colors = [
            "red",
            "blue",
            "green",
            "violet",
            "yellow",
        ]

cache = {}

def rand():
    return colors[int(random.random()*len(colors))]

def get(color):
    global cache
    try:
        return cache[color]
    except:
        cache[color] = pygame.image.load("data/"+color+".png").convert()
        return cache[color]
